﻿@{
    ViewBag.Title = "CategoriesManger";
    Layout = "~/Views/Shared/_AdminLayOut.cshtml";
}
@model List<UcAsp.Models.Categories>
 <script>
     $(document).ready(function () {
         $(".artedit").click(function () {
             $.get("/ContentManager/EditCategories?ID=" + $(this).attr("data-id"), function (dataResult) {
                 $.facebox(dataResult, "ucaspfacebox");

             });
         })
         $("#addcontent").click(function () {
             $.get("/ContentManager/EditCategories", function (dataResult) {
                 $.facebox(dataResult, "ucaspfacebox");

             });
         })
     });

 </script>
<h2>分类管理</h2>
<input class="button" id="addcontent" type="button" value=" 添加分类 " />
<div class="content-box">
     <div class="content-box-header">
        <h3>分类管理</h3>
        <div class="clear"></div>
      </div>
    <table>
            <thead>
              <tr>
                <th style="width:50%">标题</th>
                
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
                @foreach (UcAsp.Models.Categories art in Model)
                {
                  <tr>
                    <td><a href="/contentmanager/CategoriesManger?ID=@art.ID">@art.CategorieName</a>
                     </td>
                     
                    <td>
                      <!-- Icons -->
                     <a href="#" class="artedit" data-id="@art.ID" title="Edit"><img src="/content/resources/images/icons/pencil.png" alt="Edit" /></a> <a href="#" title="Delete"><img src="/content/resources/images/icons/cross.png" alt="Delete" /></a> </td>
                  </tr>
                }
            </tbody>
          </table>

</div>
